package com.ssl.sslliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssl.common.utils.PageUtils;
import com.ssl.sslliving.commodity.entity.AttrAttrgroupRelationEntity;
import com.ssl.sslliving.commodity.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性表
 *
 * @author ssl
 * @email ssl@gmail.com
 * @date 2022-11-29 21:05:56
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrAndRelation(AttrEntity attrEntity);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long categoryId);

    PageUtils querySaleAttrPage(Map<String, Object> params, Long categoryId);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrAttrgroupRelationEntity[] attrAttrgroupRelationEntities);

    PageUtils getAllowRelationAttr(Map<String, Object> params,Long attrgroupId);
}

